import { RouteRecordRaw } from 'vue-router'
import { AttachMoneyRound, SettingsSuggestRound, AddChartRound, BadgeSharp, LocalMallRound, DisplaySettingsRound, DensitySmallRound } from '@vicons/material'
import { renderIcon } from '@/util'
import { FileInvoiceDollar } from '@vicons/fa'
import { TransactionOutlined } from '@vicons/antd'

declare module 'vue-router' {
    interface RouteMeta {
        title?: string
        role?: string
        icon?: any
        sort?: number
        real?: boolean
    }
}

const routes: Array<RouteRecordRaw> = [
    {
        path: '/goods',
        name: 'goods',
        redirect: '/goods/gos',
        component: () => import('@/views/layout/Index.vue'),
        meta: {
            title: '商品管理',
            icon: renderIcon(LocalMallRound),
            role: 'Adm',
            sort: 3,
        },
        children: [
            {
                path: 'gos',
                name: 'goods.gos',
                meta: {
                    title: '商品信息',
                    icon: renderIcon(DisplaySettingsRound),
                    role: 'Adm',
                },
                component: () => import('@/views/goods/gos/Index.vue'),
            },
            {
                path: 'order',
                name: 'goods.order',
                meta: {
                    title: '订单管理',
                    icon: renderIcon(DensitySmallRound),
                    role: 'Adm',
                },
                component: () => import('@/views/goods/odr/Index.vue'),
            }
        ],
    },
]

// export default routes
export default []
